/*
 * Copyright 2009 Palm, Inc.  All rights reserved.
 */

body {
	overflow: hidden;
	padding: 0;
	-webkit-user-select: none;
	-webkit-user-drag: none;
}

.pincode-scene {
	height: 100%;
	min-height: 424px;
}

.firstuse,
.appclass {
	width: 320px;
	height: 452px;
	margin: 0;
	display: block;
}

.firstuse { 
	background: #000 url(../images/firstuse/backdrop-firstuse.png) 0 0 fixed no-repeat;
}

.appclass {
	background: #000 url(../images/pincode/backdrop-phone.png) 0 0 fixed no-repeat;
}

.info {
	text-align: center;
	width: 320px;
	color: #FFFFFF;
}

.pincode-screen-title {
	font-size: 24px;
	color: #ffffff;
	text-align: center;
	padding: 5px 10px 0px 10px;
}

.pincode-text-input.pincode-hinttext { 
	color: #ffffff; 
	font-size: 16px;
	height: 16px;
	text-align: center; 
	margin-top:0px;
}

.pin-form {
	position:relative;
	width:100%;
	height:34px;
}
.pincode-floating {   
	width: 100%;
	font-size: 26px;
	line-height: 28px; 
	text-align: center;
	position: absolute; 
	top: 0px;
}
.pincode-floating .palm-textfield-disabled {
	color:white;
}
.pincode-backspace {
	position: absolute;
	top: -1px;
	right: 10px;
	background: url(../images/pincode/dialpad-backspace.png) top center no-repeat;
	width: 36px;
	height: 36px;
}
.pincode-backspace:active {
	background-position: bottom center;
}

.pincode-phone-menu-button {
	background: none;
	-webkit-border-image: url(../images/pincode/phone-menu-button.png) 0 25 149 25 repeat repeat;
	-webkit-user-select: none;
	border-width: 0 25px 0 25px;
	font-size: 16px;
	font-weight: normal;
	line-height: 52px;
	color: white;
	text-align: center;        
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
.pincode-phone-menu-button.pincode-fullwidth {
	width: 320px;
	left: 0px;
}
.pincode-phone-menu-button.halfleft {
	width: 160px;
	position: relative;		
	top: 0;
	left:0;
}

.pincode-phone-menu-button.halfright {
	width: 160px;
	display: inline;
	position: absolute;
	top: 0;
	left:160px;
}

/* first use emergency call */

.firstuse-bottom-corners {
	position: fixed;
	bottom: 24px;
	height: 23px;
	width: 320px;
	background: url(../images/palm-bottom-corners.png) no-repeat;
	-webkit-palm-mouse-target: ignore;
    z-index: 98002;
}
.firstuse-notification-container {
	position: fixed;            
	height: 48px;    
	width: 320px;
	background: #000;
	bottom: 0; 
	left: 0;           
	color: #FFFFFF;
    z-index: 98001;    
}

.firstuse-notification-icon {
	width: 35px;
	height: 35px;
	background: url(../images/notification-icon-left.png) center center no-repeat;
	padding: 0px 5px;
	float: left;
	margin-top: 6px;
}
.notification-text {
	line-height: 48px;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: bold;
}

.firstuse-banner-container {
	position: fixed;            
	height: 24px;    
	width: 320px;
	background: #000;
	bottom: 0; 
	left: 0;           
	color: #FFFFFF;
    z-index: 98001;    
}
.firstuse-banner-icon {
	position: fixed;
	bottom: 0;
	right: 0;
	width: 40px;
	height: 24px;
	background: url(../images/notification-small-phone.png) center center no-repeat;
	z-index: 98002;  
}


.pin-menu-button {
	height: 60px;
	width: 320px; /* display: table-cell; collapses container, needs explicit width (not "100%"!) */
	background: transparent;
	-webkit-border-image: url(../images/pincode/pin-menu-button-tall.png) 0 25 60 25 repeat repeat;
	-webkit-user-select: none;
	border-width: 0 25px 0 25px;
	font-size: 16px;
	font-weight: normal;
	line-height: 16px;
	color: white;
	text-align: center;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	position: relative;
	display: table-cell;
	vertical-align: middle;
}

.pin-menu-button.half {
	width: 160px; /* display: table-cell; collapses container, needs explicit width (not "50%"!) */
}

.pin-menu-button:active {
	-webkit-border-image: url(../images/pincode/pin-menu-button-tall.png) 60 25 0 25 repeat repeat;
}

.firstuse .pin-menu-button {
	-webkit-border-image: url(../images/pincode/phone-menu-button.png) 0 25 150 25 repeat repeat;
	height: 50px;
	line-height: 52px;
	display: block;
}

.menu-wrapper {
	position: absolute;
	bottom: 0px;
	width: 100%;
}

.firstuse .menu-wrapper {
	bottom: 48px;
}

.keypad {
	width: 320px;
	position: absolute;
	top: 90px;
	bottom: 55px;
	max-height: 368px;
	min-height: 274px;
}

.firstuse .keypad {
	min-height: 259px;
	bottom: 91px;
}

.keypad > .row {
	width: 100%;
	height: 20%;
}

.keypad > .row > div {
	position: relative;
	text-align: center;
	color: #FFF;     
	-webkit-box-sizing: border-box;
	font-size: 30px;
	width: 33.34%;
	height: 100%;
	min-height: 55px;
	float: left; 
	display: block;
}

/* Keypad buttons */

.keypad > .row > .one {
	-webkit-border-image: url(../images/pincode/one-down.png) 26 0 2 0;
	-webkit-border-image: url(../images/pincode/one.png) 26 0 2 0;
	border-width: 26px 0px 2px 0px;
	width: 106px;
}

.keypad > .row > .one:active {
	-webkit-border-image: url(../images/pincode/one-down.png) 26 0 2 0;
}

.keypad > .row > .two {
	-webkit-border-image: url(../images/pincode/two-down.png) 26 0 2 0;
	-webkit-border-image: url(../images/pincode/two.png) 26 0 2 0;
	border-width: 26px 0px 2px 0px;
	width: 108px;
}

.keypad > .row > .two:active {
	-webkit-border-image: url(../images/pincode/two-down.png) 26 0 2 0;
}

.keypad > .row > .three {
	-webkit-border-image: url(../images/pincode/three-down.png) 26 0 2 0;
	-webkit-border-image: url(../images/pincode/three.png) 26 0 2 0;
	border-width: 26px 0px 2px 0px;
	width: 106px;
}

.keypad > .row > .three:active {
	-webkit-border-image: url(../images/pincode/three-down.png) 26 0 2 0;
}

.keypad > .row > .four,
.keypad > .row > .seven,
.keypad > .row > .star {
	-webkit-border-image: url(../images/pincode/four-down.png) 2 0 2 0;
	-webkit-border-image: url(../images/pincode/four.png) 2 0 2 0;
	border-width: 2px 0px 2px 0px;
	width: 106px;
}

.keypad > .row > .four:active,
.keypad > .row > .seven:active,
.keypad > .row > .star:active {
	-webkit-border-image: url(../images/pincode/four-down.png) 2 0 2 0;
}

.keypad > .row > .five,
.keypad > .row > .eight,
.keypad > .row > .zero {
	-webkit-border-image: url(../images/pincode/five-down.png) 2 0 2 0;
	-webkit-border-image: url(../images/pincode/five.png) 2 0 2 0;
	border-width: 2px 0px 2px 0px;
	width: 108px;
}

.keypad > .row > .five:active,
.keypad > .row > .eight:active,
.keypad > .row > .zero:active {
	-webkit-border-image: url(../images/pincode/five-down.png) 2 0 2 0;
}

.keypad > .row > .six,
.keypad > .row > .nine,
.keypad > .row > .pound {
	-webkit-border-image: url(../images/pincode/six-down.png) 2 0 2 0;
	-webkit-border-image: url(../images/pincode/six.png) 2 0 2 0;
	border-width: 2px 0px 2px 0px;
	width: 106px;
}

.keypad > .row > .six:active,
.keypad > .row > .nine:active,
.keypad > .row > .pound:active {
	-webkit-border-image: url(../images/pincode/six-down.png) 2 0 2 0;
}

.keypad > .row > .dial-button {
	-webkit-border-image: url(../images/pincode/keypad-dial-button-down.png) 2 25 25 25;
	-webkit-border-image: url(../images/pincode/keypad-dial-button.png) 2 25 25 25;
	border-width: 2px 25px 25px 25px;  
	min-height: 60px;
	width: 320px;
}

.keypad > .row > .dial-button:active {
	-webkit-border-image: url(../images/pincode/keypad-dial-button-down.png) 2 25 25 25;
}

.keypad > .row > div > div {
	width: 100%;
	position: absolute;
	top: 50%;
	margin-top: -23px;
	padding: 0 15px;
	-webkit-box-sizing: border-box;
	 box-sizing: border-box;
}

/* Move top row up to overlap glowy, rounded glass */
.keypad > .row:first-child > div > div {
	margin-top: -35px; 
}

.keypad > .row > .dial-button > div {
	width: 100%;
	height: 40px;
	margin-top: -10px;
	background: url(../images/pincode/dial-button-icon.png) top center no-repeat;
}

.keypad > .row > .dial-button:active > div {    
	background-position: bottom center;
}

.keypad p {
	font-size: 30px;
	margin: 0 0 3px 0;
	padding: 0;
}

/* Numpad numbers */
.row p:first-child {
	line-height: 28px;
}

/* Numpad labels */
.row p:last-child {
	font-size: 15px;
	letter-spacing: 0.1em;
	color: #999999;
}

/* Make voicemail symbol bigger and shift up */
.row > .one p:last-child {
	line-height: 16px;
}

/* Make star bigger and shift down */
.row > .star p:first-child {
	font-size: 50px;
	line-height: 38px;
}

/* Label turns white on click */
.row :active p:last-child {
	color: #fff;
}

/*
 * Short Keypad: Letters & numbers are
 * inline on the buttons rather than stacked
 *
 * Simple Keypad: Only numbers are shown,
 * they are vertically and horizontally centered
 */

.keypad.simple > .row p:last-child,
.keypad.short > .row p:last-child {
	text-align: right;
	line-height: 28px;
}

.keypad.simple > .row > .star p,
.keypad.simple > .row > .pound p,
.keypad.simple > .row p:last-child {
	display: none;
}

.keypad.simple > .row:first-child > div > div,
.keypad.short > .row:first-child > div > div {
	margin-top: -26px; 
}

.keypad.simple > .row > div > div,
.keypad.short > .row > div > div {
	margin-top: -14px;
}

.keypad.short > .row p:first-child {
	float: left;
}

/* Hide dialing button */
.keypad.simple > div:last-child {
	display: none;
}

/* Simple only has four rows, expand them to fill space */
.keypad.simple > .row {
	height: 25%;
}

/* Round the star button */
.keypad.simple > .row > .star {
	-webkit-border-image: url(../images/pincode/empty.png) 2 0 26 0;
	border-bottom-width: 26px;
}

/* Round the pound button */
.keypad.simple > .row > .pound {
	-webkit-border-image: url(../images/pincode/backspace.png) 2 0 26 0;
	border-bottom-width: 26px;
}

/* Give the zero button a bottom */
.keypad.simple > .row > .zero {
	-webkit-border-image: url(../images/pincode/zero.png) 2 0 26 0;
	border-bottom-width: 26px;
}

.keypad.simple > .row > .zero div {
	margin-top: -6px;
}

.keypad.simple > .row > .zero:active {
	-webkit-border-image: url(../images/pincode/zero-down.png) 2 0 26 0;
}
